<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/solution.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('solution_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">includes/solution.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="solution_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef PROBLEM_H_</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define PROBLEM_H_</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="vehicleState_8h.html">vehicleState.h</a>&quot;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;<a class="code" href="gMatrix_8h.html">gMatrix.h</a>&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &quot;<a class="code" href="operations_8h.html">operations.h</a>&quot;</span>
<a name="l00008"></a>00008 
<a name="l00014"></a>00014 <span class="comment">// ******************* STRUCTS ******************</span>
<a name="l00015"></a>00015 
<a name="l00017"></a><a class="code" href="structSolution.html">00017</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structSolution.html">Solution</a> {
<a name="l00019"></a><a class="code" href="structSolution.html#a0f67ae6605d24afe5101932f8c090230">00019</a>         <a class="code" href="structVehicleState.html">PvehicleState</a>* <a class="code" href="structSolution.html#a0f67ae6605d24afe5101932f8c090230">states</a>;
<a name="l00021"></a><a class="code" href="structSolution.html#ac6dcf63505e21c740a8284629b56c2bc">00021</a>         <span class="keywordtype">int</span>* <a class="code" href="structSolution.html#ac6dcf63505e21c740a8284629b56c2bc">K</a>;
<a name="l00023"></a><a class="code" href="structSolution.html#ae42d14647065155ca096134ac68dce8a">00023</a>         <a class="code" href="structGMatrix.html">PGMatrix</a> <a class="code" href="structSolution.html#ae42d14647065155ca096134ac68dce8a">gMatrix</a>;
<a name="l00024"></a>00024 } <a class="code" href="solution_8h.html#a8ec291b0d92ca14cd34aa4fd9f72bd66">Solution</a>;
<a name="l00025"></a><a class="code" href="solution_8h.html#a51498378a2ebad2f10298fbf2ad5613c">00025</a> <span class="keyword">typedef</span> <a class="code" href="structSolution.html">Solution</a>* <a class="code" href="solution_8h.html#a51498378a2ebad2f10298fbf2ad5613c">Psolution</a>;
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="comment">// ******************** COSTRUTTORI *********************************</span>
<a name="l00038"></a>00038 <span class="comment"></span><a class="code" href="structSolution.html">Psolution</a> <a class="code" href="solution_8h.html#a9e64ad85b7461afc3a9c84a5bc5c0750">initSolution</a>(<span class="keywordtype">int</span>* K, <span class="keywordtype">int</span>* N);
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="comment">// ************************* FUNZIONI *******************************</span>
<a name="l00041"></a>00041 
<a name="l00095"></a>00095 <a class="code" href="structVehiclePath.html">PvehiclePath</a> <a class="code" href="solution_8h.html#ab3ec60e68f6a2ad687fb8c6d5a8807ae">getVehiclePathInSolution</a>(<a class="code" href="structSolution.html">Psolution</a> solution, <span class="keywordtype">int</span> k);
<a name="l00096"></a>00096 
<a name="l00102"></a>00102 <a class="code" href="structVehicleState.html">PvehicleState</a> <a class="code" href="solution_8h.html#a0f1f3c91e0034ff71fd2befd0aed6761">getVehicleStateInSolution</a>(<a class="code" href="structSolution.html">Psolution</a> solution, <span class="keywordtype">int</span> k);
<a name="l00103"></a>00103 
<a name="l00112"></a>00112 <span class="keywordtype">int</span> <a class="code" href="solution_8h.html#a5072a2da80db8f808eccd298933d6f18">getSolutionProfit</a>(<a class="code" href="structSolution.html">Psolution</a> solution);
<a name="l00113"></a>00113 
<a name="l00122"></a>00122 <span class="keywordtype">int</span> <a class="code" href="solution_8h.html#ad7fdb3a1a0fe824930b1a14ffc153759">getSolutionTimeCost</a>(<a class="code" href="structSolution.html">Psolution</a> solution);
<a name="l00123"></a>00123 
<a name="l00132"></a>00132 <span class="keywordtype">int</span> <a class="code" href="solution_8h.html#a7a6decb1245b7fd09af80ccfd20ce7dc">getSolutionLoadCost</a>(<a class="code" href="structSolution.html">Psolution</a> solution);
<a name="l00133"></a>00133 
<a name="l00143"></a>00143 <span class="keywordtype">void</span> <a class="code" href="solution_8h.html#ac97e8436d5b149d167d669b5b406285c">printSolutionProfit</a>(FILE* f, <a class="code" href="structSolution.html">Psolution</a> ps);
<a name="l00144"></a>00144 
<a name="l00154"></a>00154 <span class="keywordtype">void</span> <a class="code" href="solution_8h.html#ad7f7ae59dff5c8e929338edaf60b44b8">printSolutionTimeCost</a>(FILE* f, <a class="code" href="structSolution.html">Psolution</a> ps);
<a name="l00155"></a>00155 
<a name="l00165"></a>00165 <span class="keywordtype">void</span> <a class="code" href="solution_8h.html#a75d3eeb0b6af8b4eb25048843672b6a8">printSolutionLoadCost</a>(FILE* f, <a class="code" href="structSolution.html">Psolution</a> ps);
<a name="l00166"></a>00166 
<a name="l00195"></a>00195 <a class="code" href="structSolution.html">Psolution</a> <a class="code" href="solution_8h.html#a6a8d62814bde5eeebec725952d091fc3">cloneSolution</a>(<a class="code" href="structSolution.html">Psolution</a> solution);
<a name="l00196"></a>00196 
<a name="l00210"></a>00210 <span class="keywordtype">void</span> <a class="code" href="solution_8h.html#a1d03c005a6b9866cef38fa6c00aa008a">freeSolution</a>(<a class="code" href="structSolution.html">Psolution</a> psolution);
<a name="l00211"></a>00211 <span class="comment">// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~STAMPA~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
<a name="l00218"></a>00218 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="solution_8h.html#a9b24ad9b677d9167fd5c9c2e54d414a0">printSolution</a>(FILE* f, <a class="code" href="structSolution.html">Psolution</a> solution);
<a name="l00219"></a>00219 
<a name="l00229"></a>00229 <span class="keywordtype">void</span> <a class="code" href="solution_8h.html#a0516856ca7f63d16c297292461eff57e">printVehicles</a>(FILE* f, <a class="code" href="structSolution.html">Psolution</a> solution);
<a name="l00230"></a>00230 
<a name="l00231"></a>00231 <span class="comment">//TODO il prototipo di questa funzione dovrebbe essere FILE*,Psolution,int... altrimenti cosa ci fa n vehiclePath in solution???</span>
<a name="l00248"></a>00248 <span class="comment"></span><span class="keywordtype">void</span> <a class="code" href="solution_8h.html#aff2a583ff1bbcd028e542dab99b48047">printVehicleGathering</a>(FILE* f, <a class="code" href="structVehiclePath.html">PvehiclePath</a> p_path, <a class="code" href="structGMatrix.html">PGMatrix</a> p_gMatrix, <span class="keywordtype">int</span> k);
<a name="l00249"></a>00249 
<a name="l00250"></a>00250 <span class="preprocessor">#endif </span><span class="comment">/* PROBLEM_H_ */</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="solution_8h.html">solution.h</a>      </li>

    <li class="footer">Generated on Wed Sep 4 2013 06:38:56 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
